package com.design.movieticket.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.design.movieticket.entity.Comment;
import org.apache.ibatis.annotations.Select;

public interface CommentMapper extends BaseMapper<Comment> {
    @Select("select AVG(start_score) from comment where movie_id = #{movieId}")
    String getStartScore(Long movieId);
}
